package cn.edu.hdu.dingSpace;

public class UserOperation implements User {
    String fsName="";
    boolean ifLike=false;
    String fsContent="";
    public void publish(String name) {
        fsName=name;
        System.out.println("Publish Successful");
    }
    public void informationRevise() {
        fsContent="";
        System.out.println("Revise Successful");
    }
    public void informationFound() {
        fsContent="";
        System.out.println("Found Successful");
    }
    public void informationEdit() {
        fsContent="";
        System.out.println("Edit Successful");
    }
    public void informationDelete() {
        fsContent="";
        System.out.println("Delete Successful");
    }
    public void like() {
        if(ifLike==false) {
            ifLike=true;
            System.out.println("Like Successful");
        }else {
            ifLike=false;
            System.out.println("UnLike Successful");
        }
    }
    public String getNews() {
        return "Photo2 is beautiful";
    }
}
